import Vue from 'vue'
import Router from 'vue-router'

import goods_list from '../views/goods_list.vue'
import goods_detail from '../views/goods_detail.vue'
import ycl_detail from '../views/ycl_detail.vue'

import index from '../views/index.vue'

import carts from '../views/carts.vue'

import mine from '../views/mine'

Vue.use(Router)
export default new Router({
  linkActiveClass: 'active',
  routes:[
    {
    path:'/index',
    component:index
  },{
    path:'/goods_list',
    component:goods_list,
  //   children:[
  //     {
  //       path:'goods_detail',
  //       component:goods_detail,
  //     },
  //     {
  //       path:'ycl_detail',
  //       component:ycl_detail
  //     }
  // ]
  },{
    path:'/carts',
    component:carts
  },{
    path:'/mine',
    component:mine
  },
  {
    path:'/goods_detail',
    component:goods_detail,
  },
  {
    path:'/ycl_detail/:id',
    component:ycl_detail
  }
]
})
